import { request } from '@/service/request';

/**
 * 获取翻译记录列表
 * @param params 查询参数
 */
export function getTranslationRecordList(params: Api.TranslationRecord.QueryParams) {
  return request<Api.TranslationRecord.ListResult>({
    url: '/TranslationRecords/TranslationRecordList',
    method: 'post',
    data: {
      ...params
    }
  });
}

/**
 * 删除翻译记录
 * @param params 删除参数
 */
export function deleteTranslationRecord(params: Api.TranslationRecord.DeleteParams) {
  return request<number>({
    url: '/TranslationRecords/TranslationRecord',
    method: 'delete',
    data: params
  });
} 